function LoadTable()
{
 jQuery("#bp_xml").jqGrid({
   	url:'controller/server/bp_xml_list.php?curuserid='+curuserid,
	datatype: "json",
   	colNames:['Id','Дата','Заголовок','Создатель','Время'],
   	colModel:[
               {name:'id',index:'id',width:15,search: false},
               {name:'dt',index:'id',width:40,search: false},
               {name:'title',index:'id',width:255,search: false},               
               {name:'userid',index:'userid',width:55,search: false},
               {name:'time',index:'time',width:20,search: false}                              
               
        ],
        loadError: function(data){           
          jQuery("#bp_xml").GridUnload("#bp_xml");	       
        },        
                onSelectRow: function(ids) {
                    //$("#bp_xml_step_list").load("controller/client/bp_xml_form_list_step.php?&eqid="+ids);
                    $("#bp_xml_info").load("controller/client/bp_xml_info.php?eqid="+ids);                    
                    //upload_me.setData({'contractid':ids});
                },
                     autowidth: true,	
                     pager: '#bp_xml_footer',
                     sortname: 'dt',
                     scroll:1,
                     shrinkToFit: true,        
                     viewrecords: true,
                     height: 200,
                     sortorder: "desc",
                     editurl:"controller/server/bp_xml_list.php",
                     caption:"БП Согласование по схеме"
                     }).trigger('reloadGrid');	
                     
    jQuery("#bp_xml").jqGrid('navGrid','#bp_xml_footer',{edit:false,add:false,del:false,search:false});                     
                                             
 };            
            
LoadTable();            